package org.moyrax.nereyda.services.core
{
	import org.moyrax.nereyda.services.template.IServiceEvent;
	
	import flash.net.getClassByAlias;
	
	public class MappingEntry
	{
		public var service :String = null;
		public var object  :String = null;
		public var event   :String = null;
		public var endpointName :String = null;
		
		public function MappingEntry( service:String = null, object:String = null, event:String = null ):void
		{
			this.service = service;
			this.object  = object;
			this.event   = event;
			
			var eventClass :Class = getClassByAlias(event);
			
			this.endpointName =  IServiceEvent(new eventClass(null)).endpointName;
		}
	}
}